﻿@model PageList<PointStationLineSum>
@{
    string LineFlag = ViewBag.LineFlag;
}
<table class="table table-striped table-bordered table-hover table-fix table-manage">
    <thead>
        <tr>          
            <th class="w100px" data-order="@nameof(PointStationLineSum.pointName)">检查点名称</th>
            <th class="w100px" data-order="@nameof(PointStationLineSum.Station)">客运站</th> 
            @if (LineFlag == "2")
            {
            <th class="w100px" data-order="@nameof(PointStationLineSum.Line)">线路</th>
            }
            <th class="w100px" data-order="@nameof(PointStationLineSum.DateTimes)">日期</th>
            <th class="w100px" data-order="@nameof(PointStationLineSum.registrationNo)">登记数</th>
            <th class="w100px" data-order="@nameof(PointStationLineSum.normalNo)">正常数</th>
            <th class="w100px" data-order="@nameof(PointStationLineSum.violationNo)">违规数</th>
            <th class="w100px" data-order="@nameof(PointStationLineSum.ManualregistrationNo)">手工登记数</th>
            <th class="w100px" data-order="@nameof(PointStationLineSum.ManualNormalNo)">手工登记正常数</th>
            <th class="w100px" data-order="@nameof(PointStationLineSum.ManualviolationNo)">手工登记违规数</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var record in Model)
        {
            <tr class="cursor-pointer" data-url="@Url.Action("Details",new {id = record.id})">
                <td class="">@record.pointName</td>
                <td class="">@record.Station</td>
                @if (LineFlag == "2")
                {
                <td class="">@record.Line</td>
                }
                <td class="">@DateTimeHelper.FormatDate(record.DateTimes)</td>
                <td class="">@record.registrationNo</td>
                <td class="">@record.normalNo</td>
                <td class="">@record.violationNo</td>
                <td class="">@record.ManualregistrationNo</td>
                <td class="">@record.ManualNormalNo</td>
                <td class="">@record.ManualviolationNo</td>
            </tr>
        }
    </tbody>
</table>
@Html.RenderPages(Model)